< previous page page_307 next page >

Page 307
Advantages of Microsoft Jet over the Data Control Object
So far, you have learned to use the data control object to perform database administrative tasks. The data-access objects (DAOs) addressed in this chapter perform all of the services that the data control does, as well as many more. The data-access objects give you complete control over database management.
If possible, use the data control object to manage your data. It is much easier to use because many of the administrative functions are handled for you. You can always add DAO in your code to work with the data control object.
Microsoft Jet Data Objects
Microsoft Jet is organized into a set of data-access objects. Each of the objects has collections, properties, and methods:
· Collections: Data-access objects that contain the same type of objects.
· Properties: The data contained within an object (control button, form, and so on) that defines its characteristics. You set an object's properties.
· Methods: The procedures that can be performed on an object. You invoke a method.
The Microsoft Jet data access objects exist in a hierarchy, which means that a top-down relationship exists between the objects. You learn the various Microsoft Jet data-access objects in the order they reside in the hierarchy. As you push deeper into the object hierarchy, you move toward more specific data objects. For example, the first data object in the hierarchy is the DBEngine data-access object. All other data-access objects exist underneath the DBEngine data-access objects.
Note.gif
Throughout the rest of this chapter you will see the phrases ''data-access objects" and "data objects." They both refer to the data-access object layer of the Microsoft Jet engine.

If you do not already have Visual Basic up and running, start it now and begin a new Standard EXE project. Make sure that your system can reference the Microsoft Jet 3.5 Data Access Object Library.

 
< previous page page_307 next page >

If you like this book, buy it!